﻿using BenjaminSchroeter.Dsl.DynamicProperties;

namespace BenjaminSchroeter.DynPropTestDsl
{
    partial class ExampleShape
    {
        public override void OnDoubleClick(Microsoft.VisualStudio.Modeling.Diagrams.DiagramPointEventArgs e)
        {
            ExampleElement elem = e.HitDiagramItem.Shape.ModelElement as ExampleElement;

            if ( elem != null)
            {
                EditDynamicPropertiesDialog f = new EditDynamicPropertiesDialog(elem.Props, elem.Store);
                f.ShowDialog();
            }

            base.OnDoubleClick(e);
        }
    }
}
